-- GENERATED SPELL FOR [Ymirheim Spear Gun] --


function spell0_31280(pUnit, Event) --@Launch Spear,n/a--
pUnit:FullCastSpellOnTarget(59894,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31280', 1000, 1)
end

function Sorts_31280(pUnit, Event)
local choix_sorts_31280 = math.random(0, 0)
if choix_sorts_31280 == 0 then
pUnit:RegisterEvent('spell0_31280', 1, 1)
end
end

function mob31280_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31280', math.random(1500, 3000), 1)
end

function mob31280_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31280_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31280_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31280, 1, 'mob31280_Action')
RegisterUnitEvent(31280, 2, 'mob31280_Leave')
RegisterUnitEvent(31280, 3, 'mob31280_Kill')
RegisterUnitEvent(31280, 4, 'mob31280_Die')
